const isLogin = false;

const Navigation = (navigate, name = "", param = {}) => {
  if (isLogin) navigate(name, param);
  else navigate("Login", param);
};

export default Navigation;
